package org.bluesky.framework.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.bluesky.framework.ResponseResult;
import org.bluesky.framework.dto.AddRoleDto;
import org.bluesky.framework.dto.UpdateRoleDto;
import org.bluesky.framework.entity.Role;
import org.bluesky.framework.vo.MenuRoleVo;

import java.util.List;


/**
 * 角色信息表(Role)表服务接口
 *
 * @author makejava
 * @since 2023-02-20 20:38:00
 */
public interface RoleService extends IService<Role> {

    List<String> selectRoleKeyByUserId(Long id);

    ResponseResult getRoleList(Integer pageNum, Integer pageSize, String roleName, String status);

    List<MenuRoleVo> treeMenuSelect();

    ResponseResult addRole(AddRoleDto addRoleDto);

    ResponseResult updateRoleById(UpdateRoleDto updateRoleDto);

    ResponseResult deleteRoleById(Long id);

    ResponseResult rolesStatusNormal();
}

